﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="CoolnessWidget.CoolView"
	x:Name="UserControl">
    <UserControl.Resources>
        <ImageSource x:Key="imageBackground">Resources\coolness-GUI.png</ImageSource>
        <ImageSource x:Key="imageCool1">Resources\cool1.png</ImageSource>
        <ImageSource x:Key="imageCool2">Resources\cool2.png</ImageSource>
        <ImageSource x:Key="imageCool3">Resources\cool3.png</ImageSource>
        <ImageSource x:Key="imageCool4">Resources\cool4.png</ImageSource>
        <ImageSource x:Key="imageCool5">Resources\cool5.png</ImageSource>
        <Storyboard x:Key="ChangeCoolFace">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image2" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="0.5"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.5" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image1" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="0.5"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.5" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot">
        <Image Height="100" Source="{StaticResource imageBackground}" />
        <Image Height="84" Source="{StaticResource imageCool1}" Opacity="0" x:Name="image1"/>
        <Image Height="84" Source="{StaticResource imageCool2}" Opacity="0" x:Name="image2" />
        <Image Height="84" Source="{StaticResource imageCool3}" Opacity="1" x:Name="image3" />
        <Image Height="84" Source="{StaticResource imageCool4}" Opacity="0" x:Name="image4" />
        <Image Height="84" Source="{StaticResource imageCool5}" Opacity="0" x:Name="image5" />
    </Grid>
</UserControl>